﻿<UserControl
    x:Class="Insteon.Mayhem.SpinningIcon"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    mc:Ignorable="d" 
    d:DesignHeight="100" d:DesignWidth="100">
    <UserControl.Resources>
        <Storyboard x:Key="Storyboard1" RepeatBehavior="Forever">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Storyboard.TargetName="path">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="180"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    <UserControl.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
        </EventTrigger>
    </UserControl.Triggers>
    <Viewbox x:Name="LayoutRoot" Stretch="Fill">
        <Grid Width="100" Height="100">
            <Ellipse Fill="#FF47D82A" Height="100" Width="100"/>
            <Path x:Name="path" Fill="White" Height="73.624" Stretch="Fill" Width="69.654" Data="M2.7550004,65.607995 L43.532134,91.374992 29.043086,98.986 C38.187129,107.535 50.293159,112.37399 62.902213,112.37399 81.033267,112.37399 97.696323,102.48899 106.41236,86.571999 L106.37336,86.549995 C106.37935,86.537987 106.38336,86.527 106.39035,86.514992 108.33737,83.070992 112.71038,81.855995 116.15639,83.803993 119.5994,85.751991 120.81541,90.123985 118.8664,93.568993 118.86139,93.579994 118.8534,93.588997 118.84641,93.60099 L118.81742,93.583992 C107.57437,113.973 86.178294,126.62499 62.902213,126.62499 45.027149,126.62499 27.933082,119.078 15.860041,105.91099 L0.83099812,113.807 z M56.894054,0 C74.769038,0 91.862018,7.5469971 103.93601,20.713997 L118.96499,12.817997 117.041,61.016998 76.263034,35.249998 90.753017,27.638996 C81.609027,19.089996 69.50204,14.249996 56.894054,14.249996 38.763072,14.249996 22.100087,24.134998 13.383096,40.052998 L13.422096,40.074997 C13.417095,40.086998 13.412096,40.096998 13.406096,40.109997 11.459098,43.553997 7.0861023,44.768997 3.6401053,42.819998 0.19610906,40.871998 -1.0188897,36.499998 0.92910916,33.055996 0.93510834,33.044998 0.94210834,33.034996 0.95010801,33.023998 L0.978109,33.040997 C12.221097,12.651997 33.618076,0 56.894054,0 z" Canvas.Left="15.173" Canvas.Top="13.188" RenderTransformOrigin="0.5,0.5" >
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
        </Grid>
    </Viewbox>
</UserControl>
